package com.chenxi.service;

import com.spring.*;
import lombok.Getter;

@Component("userService")
@Scope("singleton")
public class UserService implements UserInterface , BeanNameAware {
    @AutoWired
    private OrderService orderService;
    @Getter
    private String beanName;
    public void test(){
    }

    @Override
    public void setBeanName(String name) {
        System.out.println(name);
        this.beanName = name;
    }
}
